export let tree = {
  id: '',
  _id: '',
  dictionaryKey:'',
  compType: 'tree',
  ele: 'el-tree',
  compName: '树形控件',
  compIcon: 'cascader',
  viewType: 'component',
  config: true,
  showLabel: true,
  label: '树形选择',
  labelWidth: 80,
  gutter: 15,
  span: 24,
  modelValue: [], // 选中的节点key数组
  size: 'default',
  disabled: false,
  dataType: 'static',
  action: 'https://your-api/treeData',
  showSearch: true, // 新增搜索框显示配置
  'check-strictly': true, // 禁用级联选择
  
  // 树形特有配置
  'show-checkbox': false,
  'default-expand-all': false,
  'check-on-click-node': false,
  draggable: false,
  showOperation: false, // 是否显示操作按钮
  operations: [ // 节点操作按钮配置
    {
      label: '编辑',
      icon: 'Edit',
      type: 'primary',
      handler: (node, data) => console.log('编辑', node, data)
    }
  ],
  
  props: {
    label: 'label',
    value: 'value',
    children: 'children',
    disabled: (data, node) => false
  },
  
  // 静态数据
  data: [
    {
      value: '1',
      label: '一级节点',
      children: [
        {
          value: '1-1',
          label: '二级节点',
          children: [
            { value: '1-1-1', label: '三级节点' }
          ]
        }
      ]
    },
    {
      value: '2',
      label: '一级节点',
      children: [
        {
          value: '2-1',
          label: '二级节点',
          children: [
            { value: '2-2-1', label: '三级节点' }
          ]
        }
      ]
    }
  ],
  
  // 高级配置
  advanced: {
    lazy: false,
    load: null,
    filterNode: (value, data) => {
      // 默认支持label和value字段搜索
      return data.label.includes(value) || 
             String(data.value).includes(value)
    }
  }
}